package com.example.networkmoudel;


import com.example.networkmoudel.entity.BaseEntity;

import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Function;

/**
 * 针对网络请求中Rxjava异步任务调度时子类像基类转型的工具类
 *
 */
public class ChangeFunction<T extends BaseEntity> implements Function<T, BaseEntity> {

    @Override
    public BaseEntity apply(@NonNull T t) throws Exception {
        return t;
    }
}
